import java.util.Scanner;
public class test4 {
//对称图形可以用坐标的思想来解决，假设图形被放在坐标方格中，
//*和_都有专属坐标，经过观察可以总结出*坐标的规律


        public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            while (sc.hasNextInt()) {
                int n = sc.nextInt();

                for (int i = 0; i < n; i++) {

                    for (int j = 0; j < n; j++) {

                        if (i == j || (i + j) == n - 1) {
                            System.out.print("*");
                        } else {
                            System.out.print(" ");
                        }
                    }
                    System.out.println();
                }
            }
        }

}
